import request from '@/utils/request'

// 查询 ID-05 -23 化合物库列表
export function listTdmHuaHeWuKu(query) {
  return request({
    url: '/tdm/TdmHuaHeWuKu/list',
    method: 'get',
    params: query
  })
}

// 查询 ID-05 -23 化合物库详细
export function getTdmHuaHeWuKu(id) {
  return request({
    url: '/tdm/TdmHuaHeWuKu/' + id,
    method: 'get'
  })
}

// 新增 ID-05 -23 化合物库
export function addTdmHuaHeWuKu(data) {
  return request({
    url: '/tdm/TdmHuaHeWuKu',
    method: 'post',
    data: data
  })
}

// 修改 ID-05 -23 化合物库
export function updateTdmHuaHeWuKu(data) {
  return request({
    url: '/tdm/TdmHuaHeWuKu',
    method: 'put',
    data: data
  })
}

// 删除 ID-05 -23 化合物库
export function delTdmHuaHeWuKu(id) {
  return request({
    url: '/tdm/TdmHuaHeWuKu/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
